Skip to content
This repository has been archived by the owner on Jul 15, 2019. It is now read-only.

improved benchmark suite #25

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

adon-at-work
Copy link
Contributor

use benchmark for benchmarking

@adon-at-work adon-at-work mentioned this pull request Aug 18, 2015
@adon-at-work
Copy link
Contributor Author

@maditya , please review. thanks.

@yahoocla
Copy link

CLA is valid!

@maditya
Copy link
Contributor

maditya commented Aug 27, 2015

👍
cc @neraliu @yukinying for second review

@yukinying
Copy link
Contributor

The usage would need an update. Everything else is good.

@adon-at-work adon-at-work force-pushed the improved-benchmark-suite branch from 39e1b5b to 372dac9 Compare October 5, 2015 07:02
@adon-at-work
Copy link
Contributor Author

this is ready for another round of review. @maditya / @yukinying , thanks.

// })
.on('cycle', function(event) {
console.log(String(event.target));
})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you need to dump event.target to console log?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this shows the intermediate results of every test. now we have only one test, but we'll have more...
if that onCycle dump is commented. nothing will show up until everything is completed. that'd look like hanged...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in other words, if that is omitted, we will miss something like below

default x 0.64 ops/sec ±5.90% (6 runs sampled)

but will only see:

Fastest is [ 'default' ]
Speed/Time is 0.6423016849725829MB/s 1.5567777936666667s

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants